package com.itheima.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysRoleMenuMapper {
    void insertRoleMenu(String id, List<Integer> menuids);

    void deleteRoleByRoleId(String roleId);

    @Select("select menu_id from sys_role_menu where role_id = #{roleId}")
    List<Integer> selectRoleMenuByRoleId(String roleId);

    @Delete("delete from sys_role_menu where role_id = #{roleId}")
    void deleteByRoleId(String roleId);

}
